From: Colin Walters Date: Tue, 9 Mar 2010 19:08:22 +0000 (-0500) Subject: [StTextureCache] The requested size needs to be part of the cache key X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~10341 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=e752193a5468bbc69c57a2de3d22c695cc6f73ba;p=gnome-shell.git [StTextureCache] The requested size needs to be part of the cache key Otherwise we'll only render it once, which is clearly wrong. --- diff --git a/src/st/st-texture-cache.c b/src/st/st-texture-cache.c index ad33e52b4..5731ef977 100644 --- a/src/st/st-texture-cache.c +++ b/src/st/st-texture-cache.c @@ -946,7 +946,7 @@ st_texture_cache_load_gicon (StTextureCache *cache, GtkIconInfo *info; gicon_string = g_icon_to_string (icon); - key = g_strconcat (CACHE_PREFIX_GICON, gicon_string, NULL); + key = g_strdup_printf ("%s%s,size=%d", CACHE_PREFIX_GICON, gicon_string, size); g_free (gicon_string); if (create_texture_and_ensure_request (cache, key, size, &request, &texture))